<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="customer" tagdir="/WEB-INF/tags/customer"%>

<div class="top clearfix">
	<ul class="tab">
		<li class="curr"><span><fmt:message key="customerSelector.title"/></span></li>
	</ul>
	<b class="red">[<fmt:message key="customerSelector.title.tip"/>]</b>
	<%@include file="/common/pagingOnlyTop.jsp"%>
</div>

<div class="data" style="">
	<display:table name="${customerList}" cellspacing="0" cellpadding="0"	uid="customer" class="list_table" style="width:100%;" export="false"	requestURI="">
		
		<display:column style="width:20%;" sortable="false" headerClass="data-table-title"
			decorator="com.probiz.estore.core.decorator.TblColumnDecorator"
			titleKey="customer.username">
			<b><a href="javascript:void(0)"	onclick='selectCustomer(${customer.appuserId})'>${customer.username}</a></b>
			<input type="hidden" id="username_${customer.appuserId}" value="${customer.username}"/>	
			<input type="hidden" id="fullname_${customer.appuserId}" value="${customer.fullName}"/>	
		</display:column>
		<display:column style="width:20%;" property="fullName" sortable="false" decorator="com.probiz.estore.core.decorator.TblColumnDecorator"	titleKey="customer.fullname"/>
		<display:column style="" property="email" sortable="false" decorator="com.probiz.estore.core.decorator.TblColumnDecorator"	titleKey="customer.email"/>
		<display:column style="width: 20%" sortable="false" headerClass="data-table-title" decorator="com.probiz.estore.core.decorator.TblColumnDecorator"	titleKey="customer.registerTime">
			<fmt:formatDate value="${customer.createTime}" pattern="yyyy-MM-dd HH:mm" />
		</display:column>
		<display:column style="width: 10%;" sortable="false" headerClass="data-table-title" decorator="com.probiz.estore.core.decorator.TblColumnDecorator" titleKey="customer.status">
			<c:choose>
				<c:when test="${customer.status==1}">
					<fmt:message key="customer.status.active"/>
				</c:when>
				<c:otherwise>
					<font color="red"><fmt:message key="customer.status.inactive"/></font>
				</c:otherwise>
			</c:choose>
		</display:column>
	</display:table>
</div>
<%@include file="/common/pagingOnly.jsp"%>

<%--------保存查询条件 -------%>
<%@include file="customerSearchCriteriaStorage.jspf"%>
<script type="text/javascript">
highlightTableRows("customer");
$j("#customer").chromatable({
    width: "100%",
    height: "310px",
    scrolling: "yes"
}); 
</script>
